package com.atguigu.gmall.order.mapper;

import com.atguigu.gmall.model.order.OrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

/**
 * @Author atguigu-mqx
 * @Description TODO
 * @Date 2023/7/22 15:43
 * @Version 1.0
 */
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {
    /**
     * 查询我的订单.
     * @param orderInfoPage
     * @param userId
     * @param orderStatus
     * @return
     */
    IPage<OrderInfo> selectOrder(Page<OrderInfo> orderInfoPage, @Param("userId") String userId, @Param("orderStatus") String orderStatus);

}
